

lst1 = [2, 4, 3]
lst2 = [5, 6, 3]

# 两数之和
def twonumber(lst1, lst2):
    b = 0
    a = len(lst1)
    lst3 = []
    index = 0
    while a > 0:
        if len(lst2) < len(lst1):
            a = len(lst2)
        a -= 1
        c = lst2[b] + lst1[b] + index
        lst3.append(c%10)
        index = c//10
        b+=1
    if index > 0:
        lst3.append(index)
    print(lst3)

twonumber(lst1, lst2)